﻿using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Services.IServices;

namespace AMS.Web.Api.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class TestController : Controller
    {
        private readonly ITestServices _testServices;
        private readonly IMapper _mapper;
        private readonly ILogger<TestController> _logger;
        public TestController(ITestServices testServices, IMapper mapper, ILogger<TestController> logger)
        {
            _testServices = testServices;
            _mapper = mapper;
            _logger = logger;
        }
        [HttpPost]
        public IActionResult GetTest()
        {
            var res = _testServices.GetTest();
            return Ok(res);
        }
    }

}
